#ifndef  __THREADPOOL__
#define  __THREADPOOL__
// #define DIST_DIR "/home/ydh/cpp66/ydh_server/netdist"
#include<my_header.h>
#include"../include/worker.h"
#include"../include/taskQueue.h"

// //改在user_manager.h中 
// typedef struct usrArr_s{
//     char *name;//用户名
//     char *path;//相对路径
// }usrArr_t;
typedef struct threadPool_s{
    //子线程的信息
    tidArr_t tidArr;
    //任务队列
    taskQueue_t taskQueue;
    //锁
    pthread_mutex_t mutex;
    //条件变量
    pthread_cond_t cond;
}threadPool_t;
int threadPoolInit(threadPool_t *pthreadPool,int workerNum);
int makeWorker(threadPool_t*pthreadPool);
int tcpInit(char *ip,char *port);
int epollAdd(int epfd,int fd);
int epollDel(int epfd,int fd);
#endif

